// 
// File:   test.cc
// Author: cionescu
//
// Created on 6 January 2007, 20:13
//
#define BOOST_SPIRIT_DEBUG
#define BOOST_SPIRIT_DEBUG_OUT (std::clog)

#include <stdlib.h>
#include <fstream>

#include "prism_driver.h"


using namespace std;
//
// 
//
int
main(int argc, char** argv) {
    char* file_name = "lang1.mp";
    
    ifstream is(file_name);
    if (!is) {
        cerr << "Could not open input file: " << file_name << endl;
        return (-1);
    }

    is.unsetf(ios::skipws); //  Turn of white space skipping on the stream
    
    prism_driver driver(is);
    driver.generate_tree();
    
    is.close();
    return (EXIT_SUCCESS);
}

